﻿using IceDog.ElasticSearchClient.MSTest.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.ElasticSearchClient.MSTest.Providers
{
    public class TweetProvider:BaseProvider
    {
        public TweetProvider(string indexName,string type)
        {
            IndexName = indexName;
            Type = type;
        }
        /// <summary>
        /// 未自定义Id的数据
        /// </summary>
        public List<Tweet> autoIdTestData = new List<Tweet>()
        {
            new Tweet
            {
                User = "kimchy",
                PostDate = new DateTime(2009, 11, 15),
                Message = "Trying out NEST, so far so good?"
            },
            new Tweet
            {
                User = "kimchy",
                PostDate = new DateTime(2009, 12, 15),
                Message = "Trying out Apple, so far so bad?"
            },new Tweet
            {
                User = "kimchy",
                PostDate = new DateTime(2010, 1, 15),
                Message = "Trying out CUP, so far so bad?"
            },new Tweet
            {
                User = "kimchy",
                PostDate = new DateTime(2010, 1, 25),
                Message = "Trying out CUP, so far so nice?"
            },new Tweet
            {
                User = "kimchy",
                PostDate = new DateTime(2019, 1, 15),
                Message = "Trying out NEST, so far so great?"
            }
        };
        /// <summary>
        /// 自定义了Id的数据
        /// </summary>
        public List<Tweet> customIdTestData = new List<Tweet>()
        {
            new Tweet
            {
                Id = Guid.NewGuid(),
                User = "nico",
                PostDate = new DateTime(2019, 2, 15),
                Message = "The quick brown fox jumped over the lazy dog"
            },new Tweet
            {
                Id = Guid.NewGuid(),
                User = "nico",
                PostDate = new DateTime(2019, 3, 15),
                Message = "The quick brown fox jumped over the lazy cat"
            },new Tweet
            {
                Id = Guid.NewGuid(),
                User = "nico",
                PostDate = new DateTime(2019, 4, 15),
                Message = "Quick brown foxes leap over lazy dogs in summer"
            },new Tweet
            {
                Id = Guid.NewGuid(),
                User = "nico",
                PostDate = new DateTime(2019, 1, 15),
                Message = "Quick brown foxes leap over lazy dogs in winter"
            },new Tweet
            {
                Id = Guid.NewGuid(),
                User = "nico",
                PostDate = new DateTime(2019, 5, 15),
                Message = "Quick brown foxes leap over lazy dogs in spring"
            }
        };
    }
}
